export default {
    // 写所有的vue的属性
    data() {
        return {
            names: "我是mixin的name",
            queryParams: {
                page: 1,
                limit: 10
            }
        };
    },
    created() {
        this.getInit();
        console.log("mixin中生命周期");
    },
    methods: {
        getInit() {
            console.log("mixins中getInit");
        }
    },
    computed: {
        newValue() {
            console.log("mixin中的computed执行");
            this.queryParams.limit++;
        }
    },
    watch: {
        num(value) {
            console.log("mixin中watch");
        }
    },
    filters: {
        newNum(value) {
            console.log("mixin中过滤器");
            return value * 1 + 100;
        }
    }
};
